package com.pussinboots.morning.sync.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pussinboots.morning.sync.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author BaoZhou
 * @since 2019-09-22
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 批量更新状态
     * @param orderList
     * @return
     */
    Integer updateBatchByOrderNumber(@Param("orderList") List<Order> orderList);

    List<Order> getOrderNumbers(@Param("orderNumbers") List<Long> orderNumbers);
}